<template>
	<view class="uiwu-header uiwu-flex-align">
		<image @tap.stop="openBakc" class="back" src="/static/detalback.png" mode="widthFix"></image>
		<view class="title uiwu-hidden1">{{dataInfo.product_info?.store_name}}</view>
		<view class="right uiwu-flex-center">
			<image @tap.stop="emits('changTips')" src="/static/detalwenhao.png" mode="widthFix"></image>
			<image @tap.stop="uiwu.openWindow(`/pages/index/complaint?device_id=${dataInfo.device_info?.id}`)" src="/static/detalgantanhao.png" mode="widthFix"></image>
		</view>
	</view>
</template>

<script setup lang="ts">
	import { uiwu } from '@/config/config';
	import { ref } from 'vue';
	const emits = defineEmits(['changTips'])
	const props = defineProps({
		dataInfo:{
			default:{},
			type:Object
		}
	})
	const openBakc = () : void => {
		uni.navigateBack()
	}
</script>

<style lang="scss">
	.uiwu-header{
		width: 100%;
		height: 99rpx;
		padding: 0 24rpx 0 24rpx;
		justify-content: space-between;
		padding-top: 20rpx;
		.back{
			width: 56rpx;
			margin-right: 12rpx;
		}
		.title{
			width: 400rpx;
			height: 60rpx;
			background: #FFFFFF;
			border-radius: 30rpx;
			border: 3rpx solid #000000;
			padding: 0 30rpx;
			line-height: 60rpx;
			font-size: 28rpx;
			font-weight: bold;
			color: #231815;
			margin-right: 40rpx;
		}
		.right{
			image{
				width: 56rpx;
				margin: 0 12rpx;
			}
		}
		
	}
</style>